﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using Abp.AutoMapper;
using FwProject.Car.Dto;
using FwProject.Core.Distribution;
using FwProject.Core.Restaurant;

namespace FwProject.Restaurant.Dto
{
 public  class CarShopInfo
    {

        public List<LoadIngInfoOutPutDto> LoadIngInfoOutPutDto { get; set; }
        /// <summary>
        /// 配送商家
        /// </summary>
        public int DistributionCount { get; set; }
        /// <summary>
        /// 装车总数量
        /// </summary>
        public int   LoadCount { get; set; }

        public CarInfoDto CarInfoModel { get; set; }

        public Guid LoadCarId { get; set; }

        public string DrvierName { get; set; }

        public string DrvierMobile { get; set; }
        public string PlatesNumber { get; set; }

        public Distribution DistributionInfo { get; set; }
        public DateTime? CreationTime { get; set; }

        public CarStatus CarStatus { get; set; }

    }
    [AutoMap(typeof(DistributionInfo))]
    public class Distribution
    {

        [Display(Name = "支付状态")]
        public Pricestatus Pricestatus { get; set; } = Pricestatus.已配送;
        /// <summary>
        /// 应支付金额
        /// </summary>
        /// <value>The price.</value>

        [Display(Name = "应支付金额")]
        public decimal TotalPrice { get; set; } = 0;

        public long? CreatorUserId { get; set; }
        public DateTime CreationTime { get; set; }
    }
}
